local status_ok, bufferline = pcall(require, 'bufferline')
if not status_ok then return end

bufferline.setup {
    options = {
        -- separator_style = 'slant',
        modified_icon = '✥',
        buffer_close_icon = '',
        always_show_bufferline = true,
        diagnostics = 'nvim_lsp',
        diagnostics_indicator = function(count, level, diagnostics_dict, context)
            local icon = level:match("error") and " " or " "
            return " " .. icon .. count
        end,
        offsets = {
            {
                filetype = "NvimTree",
                text = "File Explorer",
                -- highlight = "Directory",
                text_align = "center"
            }, {
                filetype = "vista",
                text = "Vista",
                -- highlight = "Directory",
                text_align = "center"
            }

        }
    }
}
